﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace FashionWebsite.Models
{
    public class MyViewEngine : RazorViewEngine
    {

        private static string[] NewPartialViewFormats = new[] {
	        "~/Views/{1}/Partials/{0}.cshtml",
	        "~/Views/Shared/Partials/{0}.cshtml",
            "~/Views/{0}.cshtml"
	    };

        public MyViewEngine()
        {
            base.PartialViewLocationFormats = base.PartialViewLocationFormats.Union(NewPartialViewFormats).ToArray();
        }


    }
}